import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/scss/index.scss'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 打包的时候可以改为按需模式
// import 'element-plus/dist/index.css'
// 开发的时候全部引入启动速度更快
import '@/element/index.scss'
import * as Icons from '@element-plus/icons-vue'
import VueUeditorWrap from 'vue-ueditor-wrap';

const app = createApp(App)

// 注册全局组件
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key as keyof typeof Icons])
})

app.use(store).use(router)
.use(ElementPlus, {
  locale: zhCn,
})
.use(VueUeditorWrap)
.mount('#app')
